<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>基本设置</title>
    <meta name="description" content="Administry"/>
    <meta name="keywords" content="Admin,Template"/>
    <?php include_once("common/admin_css_js_header.php");?>
    <script type="text/javascript"
            SRC="<?php echo $view['config']['resource_domain'];?>/js/jquery.wysiwyg.min.js"></script>
    <script type="text/javascript">

        /* sample tags */
        var tags = [
            {tag:"js",freq:30},
            {tag:"jquery",freq:25},
            {tag:"pojo",freq:10},
            {tag:"agile",freq:4},
            {tag:"blog",freq:3},
            {tag:"canvas",freq:8},
            {tag:"dialog",freq:3},
            {tag:"excel",freq:4},
            {tag:"engine",freq:5},
            {tag:"flex",freq:18},
            {tag:"firefox",freq:23},
            {tag:"javascript",freq:40},
            {tag:"graph",freq:15},
            {tag:"grid",freq:20},
            {tag:"hibernate",freq:13},
            {tag:"ical",freq:4},
            {tag:"ldap",freq:9},
            {tag:"load",freq:20},
            {tag:"security",freq:13},
            {tag:"XSS",freq:21},
            {tag:"CSRF",freq:19},
            {tag:"html",freq:22},
            {tag:"xml",freq:13},
            {tag:"tools",freq:21}
        ];

        $(document).ready(function() {

            /* setup navigation, content boxes, etc... */

            $('.content').wysiwyg({
                controls: {
                    strikeThrough : { visible : true },
                    underline     : { visible : true },

                    justifyLeft   : { visible : true },
                    justifyCenter : { visible : true },
                    justifyRight  : { visible : true },
                    justifyFull   : { visible : true },

                    indent  : { visible : true },
                    outdent : { visible : true },

                    subscript   : { visible : true },
                    superscript : { visible : true },

                    undo : { visible : true },
                    redo : { visible : true },

                    insertOrderedList    : { visible : true },
                    insertUnorderedList  : { visible : true },
                    insertHorizontalRule : { visible : true },

                    h4: {
                        visible: true,
                        className: 'h4',
                        command: $.browser.msie ? 'formatBlock' : 'heading',
                        arguments: [$.browser.msie ? '<h4>' : 'h4'],
                        tags: ['h4'],
                        tooltip: 'Header 4'
                    },
                    h5: {
                        visible: true,
                        className: 'h5',
                        command: $.browser.msie ? 'formatBlock' : 'heading',
                        arguments: [$.browser.msie ? '<h5>' : 'h5'],
                        tags: ['h5'],
                        tooltip: 'Header 5'
                    },
                    h6: {
                        visible: true,
                        className: 'h6',
                        command: $.browser.msie ? 'formatBlock' : 'heading',
                        arguments: [$.browser.msie ? '<h6>' : 'h6'],
                        tags: ['h6'],
                        tooltip: 'Header 6'
                    },

                    cut   : { visible : true },
                    copy  : { visible : true },
                    paste : { visible : true },
                    html  : { visible: true }
                }
            });


        });
    </script>
</head>
<body>
<?php include_once("common/admin_header.php");?>
<!-- Page title -->
<div id="pagetitle">
    <div class="wrapper">
        <h1>设置 &rarr; <span>基本设置</span></h1>
        <!-- Quick search box -->
        <form action="" method="get"><input class="" type="text" id="q" name="q"/></form>
    </div>
</div>
<!-- End of Page title -->
<div id="page">
    <!-- Page content -->
    <div class="wrapper">
        <!-- Left column/section -->
        <section class="column width6 first" style="width:990px;">

            <div id="tabs">
                <ul>
                    <li><a class="corner-tl" href="#tabs-dasai">网站设置</a></li>
                </ul>
                <div id="tabs-dasai">
                    <?php if (isset($view['isSuccess']) && $view['isSuccess'] != null) {
                    $message = $view['isSuccess'] ? '操作成功!' : '操作失败!';
                    echo "<div class=\"box box-info\">" . $message . "</div>";
                } ?>

                    <h3>修改大赛介绍</h3>

                    <form id="sampleform" method="post" action="/index.php/Admin/setting?action=saveJj">
                        <input name="voteId" value="1" type="hidden"/>
                        <fieldset>
                            <p>
                                <label class="required" for="producttitle">大赛介绍</label><br/>
                                <textarea name="description" class="content medium full" id="area1">
                                    <?php echo $view['dasai']['description']; ?>

                                </textarea>
                                <small>请输入大赛介绍</small>
                            </p>


                            <p class="box"><input type="submit" class="btn btn-green big" value="更新大赛介绍"/></p>

                        </fieldset>

                    </form>

                    <h3>修改联系我们</h3>

                    <form id="sampleform" method="post" action="/index.php/Admin/setting?action=saveConfig">
                        <input type='hidden' name='alias' value='contact'/>
                        <fieldset>
                            <p>
                                <label class="required" for="producttitle">联系我们</label><br/>
                                <textarea name="description" class="content medium full" id="area2">
                                    <?php echo $view['contact']['description']; ?>
                                </textarea>
                                <small>请输入联系我们</small>
                            </p>


                            <p class="box"><input type="submit" class="btn btn-green big" value="更新联系我们"/></p>

                        </fieldset>

                    </form>

                    <h3>修改关于我们</h3>

                    <form id="sampleform" method="post" action="/index.php/Admin/setting?action=saveConfig">
                        <input type='hidden' name='alias' value='about'/>
                        <fieldset>
                            <p>
                                <label class="required" for="producttitle">关于我们</label><br/>
                                <textarea name="description" class="content medium full" id="area3">
                                    <?php echo $view['about']['description']; ?>
                                </textarea>
                                <small>请输入关于我们</small>
                            </p>


                            <p class="box"><input type="submit" class="btn btn-green big" value="更新关于我们"/></p>

                        </fieldset>

                    </form>
                </div>

            </div>
        </section>


    </div>
</div>
<?php include_once("common/admin_footer.php");?>
</body>
</html>